//这个模块主要获取的是品牌管理的数据的模块
import request from '@/utils/request_product';

//获取品牌列表接口
export const reqBrandList = (page, limit) => request({ url: `/admin/product/baseTrademark/${page}/${limit}`, method: 'get' });

 
//添加或修改品牌
export const reqAddOrUpdateBrand = (brand) => {
    if (brand.id) {
        return request({ url: '/admin/product/baseTrademark/update', method: 'put', data: brand });
    } else {
        //新增品牌
        return request({ url: '/admin/product/baseTrademark/save', method: 'post', data: brand });
    }
}

//删除品牌
export const reqDeleteBrand = (id)=>request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'});